package com.spring.demo.webflux.demo.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.io.Serializable;

/**
 * @author wangzhilong
 * @date 2021/3/18
 */
@Document("person")
public class Person implements Serializable {

    @MongoId
    private String _id ;
    private String name ;
    private Integer age ;
    private double price ;

}
